import { getAction, postAction } from '@/api/manage'

// 表列表
const list = (params) => getAction('/admin/generate/page', params)
// 代码预览
const preview = (params) => postAction(`/admin/generate/preview/${params}`)
// 生成代码
const generateCode = (params) => postAction(`/admin/generate/batch/code`, params, 'blob')
// 批量重置表配置
const batchDel = (params) => postAction(`/admin/generate/batchDel`, params)

export {
  list,
  preview,
  generateCode,
  batchDel
}
